//
//  TYBoxView.m
//  Tunnel
//
//  Created by wbb on 2025/6/15.
//

#import "TYBoxView.h"

@implementation TYBoxView

- (instancetype)init {
    self = [super init];
    if(self) {
        self.backgroundColor = [UIColor whiteColor];

        self.layer.shadowColor = [UIColor colorWithRed:156/255.0 green:175/255.0 blue:210/255.0 alpha:0.2].CGColor;
        self.layer.shadowOffset = CGSizeMake(0,4);
        self.layer.shadowOpacity = 1;
        self.layer.shadowRadius = 8;
        self.layer.cornerRadius = 7;
        self.clipsToBounds = YES;
    }
    return self;
}
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if(self) {
        self.backgroundColor = [UIColor whiteColor];

        self.layer.shadowColor = [UIColor colorWithRed:156/255.0 green:175/255.0 blue:210/255.0 alpha:0.2].CGColor;
        self.layer.shadowOffset = CGSizeMake(0,4);
        self.layer.shadowOpacity = 1;
        self.layer.shadowRadius = 8;
        self.layer.cornerRadius = 7;
        self.clipsToBounds = YES;
    }
    return self;
}
@end
